package ru.urfc.portal.ui.client.googlets.client.documents;

import ru.urfc.portal.ui.client.BaseDocument;
import ru.urfc.portal.ui.client.descriptor.GridDescriptor;
import ru.urfc.portal.ui.client.widgets.SelectDevices;

import com.extjs.gxt.ui.client.widget.form.DateField;
import com.extjs.gxt.ui.client.widget.form.TextField;
import com.google.gwt.core.client.GWT;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.ui.Widget;

public class NoiseElimination extends BaseDocument {

	interface Binder extends UiBinder<Widget, NoiseElimination> {}
	private static Binder binder = GWT.create(Binder.class);
	
	@UiField SelectDevices selectDevices;
	@UiField TextField<String> frequencies;
	@UiField DateField date;
	@UiField TextField<String> interval;
	@UiField TextField<String> characteristics;
	
	@Override
	protected void init(GridDescriptor descriptor) {
		initWidget(binder.createAndBindUi(this));

		descriptor.setAddFieldPathPrefix("data");
		descriptor.addTextField("frequencies", frequencies);
		descriptor.addDateField("date", date);
		descriptor.addTextField("interval", interval);
		descriptor.addTextField("country", characteristics);
		descriptor.setAddFieldPathPrefix("");

		bind(selectDevices);
	}

}
